// import { moveItemInArray, CdkDragDrop } from '@angular/cdk/drag-drop';
import { Component, OnInit } from '@angular/core';
@Component({
  selector: 'app-cdk-drag',
  templateUrl: './cdk-drag.component.html',
  styleUrls: ['./cdk-drag.component.less']
})
export class CdkDragComponent implements OnInit {
  listOfData = [
    {
      key: '1',
      name: 'John Brown',
      age: 32,
      address: 'New York No. 1 Lake Park'
    },
    {
      key: '2',
      name: 'Jim Green',
      age: 42,
      address: 'London No. 1 Lake Park'
    },
    {
      key: '3',
      name: 'Joe Black',
      age: 32,
      address: 'Sidney No. 1 Lake Park'
    }
  ];
  constructor() { }

  ngOnInit() {
  }
  

  // drop(event: CdkDragDrop<string[]>): void {
  //   moveItemInArray(this.listOfData, event.previousIndex, event.currentIndex);
  // }
}
